/* Flowable 相关样式 */
.bpmn-container {
    position: relative;
    width: 100%;
    height: 600px;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    background: white;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #ebeef5;
    background: #f5f7fa;
}

.header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

#bpmn-canvas {
    width: 100%;
    height: calc(100% - 60px);
}

.loading-overlay {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-icon {
    font-size: 40px;
    color: #409eff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.node-details {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    width: 280px;
    z-index: 100;
}

.node-details h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #303133;
    border-bottom: 1px solid #ebeef5;
    padding-bottom: 8px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.label {
    width: 80px;
    color: #909399;
    font-size: 13px;
}

.value {
    flex: 1;
    font-size: 13px;
    color: #606266;
}

.approvers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.approver-tag {
    margin-right: 4px;
}

/* 节点高亮样式 */
.highlight-node:not(.djs-connection) .djs-visual > :nth-child(1) {
    fill: rgba(251, 233, 209, 1) !important;
    stroke: rgba(214, 126, 125, 1) !important;
    stroke-width: 2px;
}

/* 连线高亮样式 */
.highlight-flow g.djs-visual > :nth-child(1) {
    stroke: rgba(0, 190, 0, 1) !important;
    stroke-width: 3px;
}

/* 网关高亮样式 */
.highlight-gateway .djs-visual > :nth-child(1) {
    stroke: rgba(66, 133, 244, 1) !important;
    stroke-width: 2px;
}

/* 动画效果 */
@keyframes highlight-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.highlight-node {
    animation: highlight-pulse 2s ease-in-out infinite;
}

/* 优化节点文本显示 */
.djs-label {
    font-weight: 500 !important;
    font-size: 14px !important;
}